const template = require('./template');
let choices = [];
for (const key in template.init) {
    choices.push(key);
}
module.exports = {
    promptName: [{
        type: 'input',
        message: '文件名称',
        name: 'templateName',
        filter: function (val) {
            return val.toLowerCase()
        }
    }],
    promptType: [{
        type: 'list',
        message: '挑选一种基础模板:',
        name: 'templateType',
        choices,
        filter: function (val) { // 使用filter将回答变为小写
            return val.toLowerCase();
        }
    }]
}
